package com.cskaoyan.service;

import com.cskaoyan.bean.MarketCoupon;
import com.cskaoyan.bean.MarketCouponUser;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.CommonData;

/***
 * title CouponService
 * @description <TODO description class purpose>
 * @author ZCZ
 * @version 1.0.0
 * @create 2022/9/9 13:28
 **/
public interface CouponService {
    CommonData<MarketCoupon> getAllInfo(BasePageInfo info, String name, Short type, Short status);

    MarketCoupon create(MarketCoupon marketCoupon);

    void delete(MarketCoupon marketCoupon);

    MarketCoupon update(MarketCoupon marketCoupon);

    MarketCoupon read(int id);

    CommonData<MarketCouponUser> getMarketCouponUser(BasePageInfo info,int couponId,Integer userId,Short status);
}
